# -*- coding : utf-8 -*-
from urllib.request import urlopen
from bs4 import BeautifulSoup as bs
import re
response=urlopen('https://baike.baidu.com').read().decode('utf-8')
soup=bs(response,'lxml')
urllist=soup.findAll('a',href=re.compile('^/'))
for url in urllist:
    if not re.search('^/.*/',url['href']):
        print(url.get_text(),'<----->','https://baike.baidu.com'+url['href'])
